import request from "../request/request"

export const queryByPage = (pageNum,pageSize,technology) => {
    return request({
        url: `/TechnologyController/listByPage/${pageNum}/${pageSize}`,
        method: 'post',
        data:technology
    })
}

export const insert = (saveOrUpdate) => {
    return request({
        url: `/TechnologyController/save`,
        method: 'post',
        data:saveOrUpdate
    })
}

export const update = (saveOrUpdate) => {
    return request({
        url: `/TechnologyController/update`,
        method: 'put',
        data:saveOrUpdate
    })
}

export const remove = (id) => {
    return request({
        url: `/TechnologyController/deleteById`,
        method: 'delete',
        params:{id:id}
    })
}